package ch.sfug.events {
	import flash.events.Event;				

	/**
	 * an event for a play back progress
	 * @author loop
	 */
	public class TimeProgressEvent extends Event {

		public static var TIME_PROGRESS:String = "time_progress";

		private var c:Number;
		private var t:Number;

		public function TimeProgressEvent( type:String, current:Number, total:Number ) {
			super(type);
			c = current;
			t = total;
		}

		
		/**
		 * returns the current playback time in ms.
		 */
		public function get currentTime():Number {
			return c;
		}

		
		/**
		 * returns the total playback time in ms.
		 */
		public function get totalTime():Number {
			return t;
		}

		
		override public function toString():String {
			return "TimeProgressEvent: " + c + " / " + t;
		}
	}
}
